x86/S3: Restore cr4 later during resume
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 13 Dec 2019 17:56:40 +0000 (17:56 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 18 Dec 2019 11:42:54 +0000 (11:42 +0000)
commit581deaa82952ac652ca1d838da34307a15031046
tree80f75de319ce84105507d43adcea8d89d0e135b9
parenta8e9ac0a23b0ef38aa3396b720d9aa0788d8d94f
x86/S3: Restore cr4 later during resume

Just like the BSP/AP paths, %cr4 is loaded with only PAE.  Defer restoring all
of %cr4 (MCE in particular) until all the system structures (IDT/TSS in
particular) have been loaded.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/acpi/suspend.c
xen/arch/x86/acpi/wakeup_prot.S